-- GENERATED SPELL FOR [Aqua Guardian] --


function spell0_6047(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(865,pUnit)
pUnit:RegisterEvent('Sorts_6047', 8000, 1)
end

function Sorts_6047(pUnit, Event)
local choix_sorts_6047 = math.random(0, 0)
if choix_sorts_6047 == 0 then
pUnit:RegisterEvent('spell0_6047', 1, 1)
end
end

function mob6047_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6047', math.random(1500, 3000), 1)
end

function mob6047_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6047_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6047_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6047, 1, 'mob6047_Action')
RegisterUnitEvent(6047, 2, 'mob6047_Leave')
RegisterUnitEvent(6047, 3, 'mob6047_Kill')
RegisterUnitEvent(6047, 4, 'mob6047_Die')
